package com.basic.modules.nykf.service.impl;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.basic.common.utils.DateUtils;
import com.basic.modules.nykf.dao.KhflsjDao;
import com.basic.modules.nykf.service.KhflsjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class KhflsjServiceImpl implements KhflsjService {

    @Autowired
    KhflsjDao khflsjDao;

    @Override
    public List<Map> statistics1() {
        DateTime dateTime = DateUtil.beginOfYear(DateUtil.date());
        String dateTimeStr = DateUtils.format(dateTime);
        List<Map> mapList = khflsjDao.statistics1(dateTimeStr);
        return mapList;
    }
}